<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
    
    <style type="text/css">
         .rotulos{
                font-family: verdana;
                font-size: 12px;
                font-weight: bold;
                color:#4F4F4F;
            }
    </style>
    
<p:dialog id="modalDialog" header="Editar Cadastro" widgetVar="editDialog" modal="true" height="200"  resizable="false" draggable="false" >

                <p:outputPanel autoUpdate="true">
                    <h:form prependId="true" >
                        <p:focus for="email" />
                        <h:panelGrid columns="2" >

                            <h:outputLabel id="email" value="Email:" styleClass="rotulos" />
                            <p:inputText value="#{cadastroBean.email}" required="true" style="font-family: verdana;
                font-size: 12px;
                font-weight: bold;
                color:#4F4F4F;"/>
                            <h:outputLabel value="Nome:" style="font-family: verdana;
                font-size: 12px;
                font-weight: bold;
                color:#4F4F4F;"/>
                            <p:inputText value="#{cadastroBean.nome}" required="true" requiredMessage="Campo [nome] é Obrigatório!" size="30" style="font-family: verdana;
                font-size: 12px;
                font-weight: bold;
                color:#4F4F4F;"/>
                            <h:outputLabel for="senha" value="Senha:" styleClass="rotulos"/>  
                            <h:inputSecret value="#{cadastroBean.senha}"   
                                           id="senha" required="true" label="senha"  styleClass="rotulos"/>
                            <h:outputLabel for="senha" value="Confirma Senha:"  styleClass="rotulos"/>  
                            <h:inputSecret value="#{cadastroBean.confirmaSenha}"   
                                           id="confirmasenha" required="true" label="confirmasenha"  styleClass="rotulos"/>
                            <p:commandButton value="Alterar" actionListener="#{cadastroBean.alteraCadastro}" ajax="false"  style="font-family: verdana;
                font-size: 12px;
                font-weight: bold;
                color:#4F4F4F;"/> 
                        </h:panelGrid>
                    </h:form>
                </p:outputPanel>
            </p:dialog> 

</html>
